#include <stdio.h>

int main()
{
    int num[12];
    int c;
    int i, j;

    for (i = 0; i < 12; i++)
        num[i] = 0;

    while ((c = getchar()) != EOF)
    {
        if (c >= '0' && c <= '9')
            ++num[c - '0'];
        else if (c == ' ' || c == '\t' || c == '\n')
            ++num[10]; //blanks, tabs and newline-symbols.
        else
            ++num[11]; //other characters.
    }

    // Print column diagram.
    for (i = 0; i < 12; i++)
    {
        printf("\n%2d", i);
        for (j = 0; j < num[i]; j++)
            printf("▅");
    }
    printf("\n");

    return 0;
}
